#ifndef _BSP_TIMER_H_
#define _BSP_TIMER_H_
#include <stdint.h>
#include <stdbool.h>
#include "lpit.h"


extern uint32_t sys_timestamp;

#define sys_timeout(time, timeout)  (time ? ((system_tick_ms) - (time) > (timeout)) : 0)

void sys_time_set(uint32_t* time);

void update_timestamp(void);

#endif /* BSP_TIMER_H_ */
